package com.ruoyi.mes.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 巡检数据管理对象 tb_inspection_data
 * 
 * @author ruoyi
 * @date 2025-01-09
 */
public class InspectionData extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 巡检唯一标识 */
    private Long inspectionId;

    /** 设备ID，外键关联设备表 */
    @Excel(name = "设备ID，外键关联设备表")
    private Long equipmentId;

    /** 巡检日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "巡检日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date inspectionDate;

    /** 巡检结果 */
    @Excel(name = "巡检结果")
    private String inspectionResult;

    /** 巡检人员ID，外键关联员工表 */
    @Excel(name = "巡检人员ID，外键关联员工表")
    private Long inspectorId;

    public void setInspectionId(Long inspectionId) 
    {
        this.inspectionId = inspectionId;
    }

    public Long getInspectionId() 
    {
        return inspectionId;
    }
    public void setEquipmentId(Long equipmentId) 
    {
        this.equipmentId = equipmentId;
    }

    public Long getEquipmentId() 
    {
        return equipmentId;
    }
    public void setInspectionDate(Date inspectionDate) 
    {
        this.inspectionDate = inspectionDate;
    }

    public Date getInspectionDate() 
    {
        return inspectionDate;
    }
    public void setInspectionResult(String inspectionResult) 
    {
        this.inspectionResult = inspectionResult;
    }

    public String getInspectionResult() 
    {
        return inspectionResult;
    }
    public void setInspectorId(Long inspectorId) 
    {
        this.inspectorId = inspectorId;
    }

    public Long getInspectorId() 
    {
        return inspectorId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("inspectionId", getInspectionId())
            .append("equipmentId", getEquipmentId())
            .append("inspectionDate", getInspectionDate())
            .append("inspectionResult", getInspectionResult())
            .append("inspectorId", getInspectorId())
            .toString();
    }
}
